package com.juc.forkJoin.forkJoin8;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;

public class Run {

	public static void main(String[] args) throws InterruptedException, ExecutionException {
		MyRecursiveTask task = new MyRecursiveTask(1, 10);
		ForkJoinPool pool =  new ForkJoinPool();
		ForkJoinTask<Integer> task2 = pool.submit(task);
		System.out.println("♥ 结果为 ： " +task2.get());
		
	}
}
